cmake_minimum_required(VERSION 3.22)
project(crt_fault)

set(CMAKE_CXX_STANDARD 17)

set(my_LIB ${PROJECT_NAME}_sample)
add_library(${my_LIB} SHARED sample.cpp)
target_compile_options(${my_LIB} PRIVATE "/MT")

set(my_EXE ${PROJECT_NAME}_main)
add_executable(${my_EXE} main.cpp)
target_link_libraries(${my_EXE} ${my_LIB})
